#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QFile>
#include <QPropertyAnimation>
#include <QVector>
#include <QAnimationGroup>
#include "dialog.h"
#include "help.h"

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT
    
public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    bool scameBox();

private slots:
    void on_pushButton_3_clicked();
    void help_trig();
    void open_trig();
    void next_trig();
    void cut_trig();
    void copy_trig();
    void paste_trig();
    void before_trig();
    void after_trig();
    void save_trig();
    void saveas_trig();

    void on_pushButton_2_clicked();

    void on_actionLire_la_suite_du_fichier_actuel_B_ta_triggered();

    void on_actionFermer_triggered();

    void on_actionFermer_2_triggered();

private:
    QVector<QPropertyAnimation*>* animations;
    QAnimationGroup* anim;
    Ui::MainWindow *ui;
    Dialog* dial;
    Help* help;
    QFile file;
    qint64 taille;
    quint64 lecture;
};

#endif // MAINWINDOW_H
